package net.neptech.repository;

import net.neptech.model.workflow.Workflow;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

@Repository
public interface WorkflowRepo extends JpaRepository<Workflow, String> {

    List<Workflow> findByFlowName(String flowName);

    List<Workflow> findByUniqueId(String uniqueId);

    List<Workflow> findByUniqueIdIn(Collection<String> uniqueIds);
}
